#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class MDIFile
  {
    public MDIFile()
    {
      
	}

    
  
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  MDIFile item = (MDIFile)newContent;
      bool changed = false;

      
      if (idDocument != item.idDocument)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = idDocumentField;
        propertyChange.NewValue = item.idDocumentField;
        propertyChange.PropertyName = "idDocument";
        changes.Add(propertyChange);

		
        idDocumentField = item.idDocumentField;
      }

      if (mdiFileIndex != item.mdiFileIndex)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = mdiFileIndexField;
        propertyChange.NewValue = item.mdiFileIndexField;
        propertyChange.PropertyName = "mdiFileIndex";
        changes.Add(propertyChange);

		
        mdiFileIndexField = item.mdiFileIndexField;
      }


      return changed;
    }
  }
}

#endif